package chapter01;

public class StringTest {
    public static void main(String[] args) {
        String name = "张三";
        int age = 22;
        char gender = '男';
        double weight = 92.3;
        boolean isMarried = false;
        String phoneNumber = "188****9405";

        System.out.println("姓名：" + name);
        System.out.println("年龄：" + age + "岁");
        System.out.println("性别：" + gender);
        System.out.println("体重：" + weight + "kg");
        System.out.println("婚姻状况：" + (isMarried ? "已婚" : "单身"));
        System.out.println("手机号码：" + phoneNumber);

        // 195
        System.out.println('a' + 'b');
        // ab
        System.out.println("a" + "b");
    }
}
